<?php
spl_autoload_register();

//传统是看得到对数据库的操作
/*$db = \vendor\Factory::getDatabase('127.0.0.1','root','root','test2');
$user_info = $db->query2('select name from user where id=1');*/

$proxy = new \vendor\Proxy();
$id = 4;
var_dump($proxy->getUsername($id));

